//调用接口配置文件
import { request } from 'config/request'
// 定义接口

// //接收类型
// export async function exportConlog(params) {
//     return request({
//         url: 'admin/loginLog/export/excel',
//         method: 'POST',
//         data: params
//     });
// };

//城市与区域级联
export async function regionArea(params) {
    // console.log(params)
    return request({
        url: `admin/qrcode/region/area/tree/get`,
        method: 'GET',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};

//坐标数据
export async function locationServ(params) {
    let url =params.mapType=='1'?'admin/CustomerLocation/pointSwag':'admin/CustomerLocation/heatSwag'
    return request({
        url: url,
        method: 'POST',
        data: {...params},
        headers:{
            "Content-type":"application/json",
        }
    });
};

//获取项目
export async function projectsServ(params) {
    return request({
        url: `admin/CustomerLocation/projectsSwag/${params.region}`,
        method: 'GET',
        headers:{
            "Content-type":"application/json",
        }
    });
};